//
//  MediaEditPreviewCell.h
//  XPhoto
//
//  Created by baboy on 2019/5/6.
//  Copyright © 2019 baboy. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <Photos/Photos.h>

NS_ASSUME_NONNULL_BEGIN

@class MediaEditPhotoCellDelegate;

@interface MediaEditPhotoCell : UITableViewCell
@property(nonatomic, strong)IBOutlet UIButton *addButton;
@property(nonatomic, strong)NSMutableArray *photos;
@property(nonatomic, assign)id delegate;
@property(nonatomic, assign)BOOL shouldTakePhoto;


- (void)addPhotos:(NSArray*)photos;
- (IBAction)clickAddPhotoButton:(id)btn;
- (void)clickPhotoView:(id)photoView;
- (void)removePhoto:(PHAsset*)photo;
+ (CGFloat)heightWithPhotos:(nullable NSArray*)photos cellWidth:(CGFloat)width shouldTakePhoto:(BOOL)shouldTakePhoto;
@end

@protocol MediaEditPhotoCellDelegate <NSObject>

- (void)previewCell:(id)cell addPhoto:(id)button;
- (void)previewCell:(id)cell clickPhotoView:(id)photoView;

@end
NS_ASSUME_NONNULL_END
